<?php
/**
 * Created by PhpStorm.
 * User: chenzhenlin
 * Date: 2019/3/29
 * Time: 11:15 AM
 */

namespace app\admin\controller;

use app\common\controller\Base;
use app\common\helpers\Functions;
use think\App;

class Admin extends Base
{
    public function __construct(App $app = null)
    {
        parent::__construct($app);
        if(Functions::isLogin()){
           $this->redirect('/admin/index');
        }
    }

    public function login(){
        return $this->fetch();
    }

}